<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="keywords" content="admin, dashboard, bootstrap, template, flat, modern, theme, responsive, fluid, retina, backend, html5, css, css3">
  <meta name="description" content="">
  <meta name="author" content="ThemeBucket">
  <link rel="shortcut icon" href="#" type="image/png">

  <title>首页</title>

  <!--icheck-->
  <link href="/js/iCheck/skins/minimal/minimal.css" rel="stylesheet">
  <link href="/js/iCheck/skins/square/square.css" rel="stylesheet">
  <link href="/js/iCheck/skins/square/red.css" rel="stylesheet">
  <link href="/js/iCheck/skins/square/blue.css" rel="stylesheet">

  <link rel="stylesheet" type="text/css" href="/css/bootstrap-datetimepicker.css" />
  <script src="/js/bootstrap-datetimepicker.js" type="text/javascript"></script>

  <!--dashboard calendar-->
  <link href="/css/clndr.css" rel="stylesheet">

  <!--Morris Chart CSS -->
  <link rel="stylesheet" href="/js/morris-chart/morris.css">

  <!--common-->
  <link href="/css/style.css" rel="stylesheet">
  <link href="/css/style-responsive.css" rel="stylesheet">

  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <script src="/js/html5shiv.js"></script>
  <script src="/js/respond.min.js"></script>
  <![endif]-->
</head>
<body class="sticky-header">

<section>
    <!-- left side start-->
    <div class="left-side sticky-left-side">

        <!--logo and iconic logo start-->
        <div class="logo">
            <a  onclick="clicklogo()"><img src="/images/logo.png" alt="" style="width: 70%;height: 70%"></a>
        </div>

        <div class="logo-icon text-center">
            <a href="index.html"><img src="/images/logo_icon.png" alt="" ></a>
        </div>
        <!--logo and iconic logo end-->

        <div class="left-side-inner">

            <!-- visible to small devices only -->
            <div class="visible-xs hidden-sm hidden-md hidden-lg">
                <div class="media logged-user">

                </div>

                <h5 class="left-nav-title">商院就业系统</h5>
                <ul class="nav nav-pills nav-stacked custom-nav">
                    <li class="menu-list"><a href=""><i class="fa fa-book"></i> <span>个人中心</span></a>
                        <ul class="sub-menu-list">
                            <li><a data-toggle="modal" data-target="#myModalInfo" onclick="selectCompBaseInfo()"><i class="fa fa-user"></i> 基础信息</a></li>
                            <li><a data-toggle="modal" data-target="#myModalRecruitInfo" onclick="selectCompRecruitInfo()"><i class="fa fa-user"></i> 招聘信息</a></li>
                            <li><a data-toggle="modal" data-target="#myModalInfoRelease" ><i class="fa fa-user"></i> 信息发布</a></li>
                            <li><a data-toggle="modal" data-target="#myModal" ><i class="fa fa-cog"></i>修改密码</a></li>
                            <li><a onclick="deleteAcount()"><i class="fa fa-cog"></i>注销账号</a></li>
                            <li><a onclick="loginout()"><i class="fa fa-sign-out"></i> 退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
            <!--sidebar nav start-->
            <ul class="nav nav-pills nav-stacked custom-nav">
                <li class="menu-list"><a href=""><i class="fa fa-book"></i> <span>校招管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a  onclick="infostu()">学生信息</a></li>
                        <li><a onclick="compattentstu()"> 我的收藏</a></li>
                        <li><a onclick="mycompattentstu()">我被关注</a></li>
                    </ul>
                </li>

                <li class="menu-list"><a href="#"><i class="fa fa-map-marker"></i> <span>社招管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a  onclick="general()">校招动态</a></li>
                        <li><a href="buttons"> 招聘岗位</a></li>
                        <li><a href="tabs-accordions">社招统计</a></li>
                        <li><a href="typography.html">招聘岗位</a></li>
                    </ul>
                </li>
            </ul>
            <!--sidebar nav end-->

        </div>
    </div>
    <!-- left side end-->
    
    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <div class="header-section">

            <!--toggle button start-->
            <a class="toggle-btn"><i class="fa fa-bars"></i></a>
            <!--toggle button end-->

            <!--search start-->
            <form class="searchform" action="index.html" method="post">
                <input type="text" class="form-control" name="keyword" placeholder="查询" />
            </form>
            <!--search end-->

            <!--notification menu start -->
            <div class="menu-right">
                <ul class="notification-menu">
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            <span id="currentuser"></span>! 个人中心
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-usermenu">
                            <li><a data-toggle="modal" data-target="#myModalInfo" onclick="selectCompBaseInfo()"><i class="fa fa-user"></i> 基础信息</a></li>
                            <li><a data-toggle="modal" data-target="#myModalRecruitInfo" onclick="selectCompRecruitInfo()"><i class="fa fa-user"></i> 招聘信息</a></li>
                            <li><a data-toggle="modal" data-target="#myModalInfoRelease" ><i class="fa fa-user"></i> 信息发布</a></li>
                            <li><a data-toggle="modal" data-target="#myModal" ><i class="fa fa-cog"></i>修改密码</a></li>
                            <li><a onclick="deleteAcount()"><i class="fa fa-cog"></i>注销账号</a></li>
                            <li><a onclick="loginout()"><i class="fa fa-sign-out"></i> 退出登录</a></li>
                        </ul>
                    </li>

                </ul>
            </div>


        </div>

        <div class="page-heading">
            <h3>
                Dashboard
            </h3>
            <ul class="breadcrumb">
                <li>
                    <a href="#">Dashboard</a>
                </li>
                <li class="active"> My Dashboard </li>
            </ul>
            <div class="state-info">
                <section class="panel">
                    <div class="panel-body">
                        <div class="summary">
                            <span>yearly expense</span>
                            <h3 class="red-txt">$ 45,600</h3>
                        </div>
                        <div id="income" class="chart-bar"></div>
                    </div>
                </section>
                <section class="panel">
                    <div class="panel-body">
                        <div class="summary">
                            <span>yearly  income</span>
                            <h3 class="green-txt">$ 45,600</h3>
                        </div>
                        <div id="expense" class="chart-bar"></div>
                    </div>
                </section>
            </div>
        </div>

        <div class="wrapper">
            <div class="row">
                <div class="col-md-6">
                    <!--statistics start-->
                    <div class="row state-overview">
                        <div class="col-md-6 col-xs-12 col-sm-6">
                            <div class="panel purple">
                                <div class="symbol">
                                    <i class="fa fa-gavel"></i>
                                </div>
                                <div class="state-value">
                                    <div class="value">230</div>
                                    <div class="title">New Order</div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 col-xs-12 col-sm-6">
                            <div class="panel red">
                                <div class="symbol">
                                    <i class="fa fa-tags"></i>
                                </div>
                                <div class="state-value">
                                    <div class="value">3490</div>
                                    <div class="title">Copy Sold</div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row state-overview">
                        <div class="col-md-6 col-xs-12 col-sm-6">
                            <div class="panel blue">
                                <div class="symbol">
                                    <i class="fa fa-money"></i>
                                </div>
                                <div class="state-value">
                                    <div class="value">22014</div>
                                    <div class="title"> Total Revenue</div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 col-xs-12 col-sm-6">
                            <div class="panel green">
                                <div class="symbol">
                                    <i class="fa fa-eye"></i>
                                </div>
                                <div class="state-value">
                                    <div class="value">390</div>
                                    <div class="title"> Unique Visitors</div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--statistics end-->
                </div>
                <div class="col-md-6">
                    <!--more statistics box start-->
                    <div class="panel deep-purple-box">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-md-7 col-sm-7 col-xs-7">
                                    <div id="graph-donut" class="revenue-graph"></div>

                                </div>
                                <div class="col-md-5 col-sm-5 col-xs-5">
                                    <ul class="bar-legend">
                                        <li><span class="blue"></span> Open rate</li>
                                        <li><span class="green"></span> Click rate</li>
                                        <li><span class="purple"></span> Share rate</li>
                                        <li><span class="red"></span> Unsubscribed rate</li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--more statistics box end-->
                </div>
            </div>
            <div class="row">
                <div class="col-md-8">
                    <div class="panel">
                        <div class="panel-body">
                            <div class="row revenue-states">
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <h4>Monthly revenue report</h4>
                                    <div class="icheck">
                                        <div class="square-red single-row">
                                            <div class="checkbox ">
                                                <input type="checkbox" checked>
                                                <label>Online</label>
                                            </div>
                                        </div>
                                        <div class="square-blue single-row">
                                            <div class="checkbox ">
                                                <input type="checkbox">
                                                <label>Offline </label>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <ul class="revenue-nav">
                                        <li><a href="#">weekly</a></li>
                                        <li><a href="#">monthly</a></li>
                                        <li class="active"><a href="#">yearly</a></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="clearfix">
                                        <div id="main-chart-legend" class="pull-right">
                                        </div>
                                    </div>

                                    <div id="main-chart">
                                        <div id="main-chart-container" class="main-chart">
                                        </div>
                                    </div>
                                    <ul class="revenue-short-info">
                                        <li>
                                            <h1 class="red">15%</h1>
                                            <p>Server Load</p>
                                        </li>
                                        <li>
                                            <h1 class="purple">30%</h1>
                                            <p>Disk Space</p>
                                        </li>
                                        <li>
                                            <h1 class="green">84%</h1>
                                            <p>Transferred</p>
                                        </li>
                                        <li>
                                            <h1 class="blue">28%</h1>
                                            <p>Temperature</p>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="panel">
                        <header class="panel-heading">
                            goal progress
                            <span class="tools pull-right">
                                <a href="javascript:;" class="fa fa-chevron-down"></a>
                                <a href="javascript:;" class="fa fa-times"></a>
                             </span>
                        </header>
                        <div class="panel-body">
                            <ul class="goal-progress">
                                <li>
                                    <div class="prog-avatar">
                                        <img src="/images/photos/user1.png" alt=""/>
                                    </div>
                                    <div class="details">
                                        <div class="title">
                                            <a href="#">John Doe</a> - Project Lead
                                        </div>
                                        <div class="progress progress-xs">
                                            <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 70%">
                                                <span class="">70%</span>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <li>
                                    <div class="prog-avatar">
                                        <img src="/images/photos/user2.png" alt=""/>
                                    </div>
                                    <div class="details">
                                        <div class="title">
                                            <a href="#">Cameron Doe</a> - Sales
                                        </div>
                                        <div class="progress progress-xs">
                                            <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 91%">
                                                <span class="">91%</span>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <li>
                                    <div class="prog-avatar">
                                        <img src="/images/photos/user3.png" alt=""/>
                                    </div>
                                    <div class="details">
                                        <div class="title">
                                            <a href="#">Hoffman Doe</a> - Support
                                        </div>
                                        <div class="progress progress-xs">
                                            <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
                                                <span class="">40%</span>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <li>
                                    <div class="prog-avatar">
                                        <img src="/images/photos/user4.png" alt=""/>
                                    </div>
                                    <div class="details">
                                        <div class="title">
                                            <a href="#">Jane Doe</a> - Marketing
                                        </div>
                                        <div class="progress progress-xs">
                                            <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
                                                <span class="">20%</span>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <li>
                                    <div class="prog-avatar">
                                        <img src="/images/photos/user5.png" alt=""/>
                                    </div>
                                    <div class="details">
                                        <div class="title">
                                            <a href="#">Hoffman Doe</a> - Support
                                        </div>
                                        <div class="progress progress-xs">
                                            <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
                                                <span class="">45%</span>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                            <div class="text-center"><a href="#">View all Goals</a></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-4">
                    <div class="panel">
                        <div class="panel-body extra-pad">
                            <h4 class="pros-title">prospective <span>leads</span></h4>
                            <div class="row">
                                <div class="col-sm-4 col-xs-4">
                                    <div id="p-lead-1"></div>
                                    <p class="p-chart-title">Laptop</p>
                                </div>
                                <div class="col-sm-4 col-xs-4">
                                    <div id="p-lead-2"></div>
                                    <p class="p-chart-title">iPhone</p>
                                </div>
                                <div class="col-sm-4 col-xs-4">
                                    <div id="p-lead-3"></div>
                                    <p class="p-chart-title">iPad</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="panel">
                        <div class="panel-body extra-pad">
                            <div class="col-sm-6 col-xs-6">
                                <div class="v-title">Visits</div>
                                <div class="v-value">10,090</div>
                                <div id="visit-1"></div>
                                <div class="v-info">Pages/Visit</div>
                            </div>
                            <div class="col-sm-6 col-xs-6">
                                <div class="v-title">Unique Visitors</div>
                                <div class="v-value">8,173</div>
                                <div id="visit-2"></div>
                                <div class="v-info">Avg. Visit Duration</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">

                    <div class="panel green-box">
                        <div class="panel-body extra-pad">
                            <div class="row">
                                <div class="col-sm-6 col-xs-6">
                                    <div class="knob">
                                        <span class="chart" data-percent="79">
                                            <span class="percent">79% <span class="sm">New Visit</span></span>
                                        </span>
                                    </div>
                                </div>
                                <div class="col-sm-6 col-xs-6">
                                    <div class="knob">
                                        <span class="chart" data-percent="56">
                                            <span class="percent">56% <span class="sm">Bounce rate</span></span>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-4">
                    <div class="panel">
                        <div class="panel-body">
                            <div class="calendar-block ">
                                <div class="cal1">

                                </div>
                            </div>

                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="panel">
                        <header class="panel-heading">
                            Todo List
                            <span class="tools pull-right">
                                <a class="fa fa-chevron-down" href="javascript:;"></a>
                                <a class="fa fa-times" href="javascript:;"></a>
                             </span>
                        </header>
                        <div class="panel-body">
                            <ul class="to-do-list" id="sortable-todo">
                                <li class="clearfix">
                                    <span class="drag-marker">
                                    <i></i>
                                    </span>
                                    <div class="todo-check pull-left">
                                        <input type="checkbox" value="None" id="todo-check"/>
                                        <label for="todo-check"></label>
                                    </div>
                                    <p class="todo-title">
                                        Dashboard Design & Wiget placement
                                    </p>
                                    <div class="todo-actionlist pull-right clearfix">

                                        <a href="#" class="todo-remove"><i class="fa fa-times"></i></a>
                                    </div>
                                </li>
                                <li class="clearfix">
                                    <span class="drag-marker">
                                    <i></i>
                                    </span>
                                    <div class="todo-check pull-left">
                                        <input type="checkbox" value="None" id="todo-check1"/>
                                        <label for="todo-check1"></label>
                                    </div>
                                    <p class="todo-title">
                                        Wireframe prepare for new design
                                    </p>
                                    <div class="todo-actionlist pull-right clearfix">

                                        <a href="#" class="todo-remove"><i class="fa fa-times"></i></a>
                                    </div>
                                </li>
                                <li class="clearfix">
                                    <span class="drag-marker">
                                    <i></i>
                                    </span>
                                    <div class="todo-check pull-left">
                                        <input type="checkbox" value="None" id="todo-check2"/>
                                        <label for="todo-check2"></label>
                                    </div>
                                    <p class="todo-title">
                                        UI perfection testing for Mega Section
                                    </p>
                                    <div class="todo-actionlist pull-right clearfix">

                                        <a href="#" class="todo-remove"><i class="fa fa-times"></i></a>
                                    </div>
                                </li>
                                <li class="clearfix">
                                    <span class="drag-marker">
                                    <i></i>
                                    </span>
                                    <div class="todo-check pull-left">
                                        <input type="checkbox" value="None" id="todo-check3"/>
                                        <label for="todo-check3"></label>
                                    </div>
                                    <p class="todo-title">
                                        Wiget & Design placement
                                    </p>
                                    <div class="todo-actionlist pull-right clearfix">

                                        <a href="#" class="todo-remove"><i class="fa fa-times"></i></a>
                                    </div>
                                </li>
                                <li class="clearfix">
                                    <span class="drag-marker">
                                    <i></i>
                                    </span>
                                    <div class="todo-check pull-left">
                                        <input type="checkbox" value="None" id="todo-check4"/>
                                        <label for="todo-check4"></label>
                                    </div>
                                    <p class="todo-title">
                                        Development & Wiget placement
                                    </p>
                                    <div class="todo-actionlist pull-right clearfix">

                                        <a href="#" class="todo-remove"><i class="fa fa-times"></i></a>
                                    </div>
                                </li>

                            </ul>
                            <div class="row">
                                <div class="col-md-12">
                                    <form role="form" class="form-inline">
                                        <div class="form-group todo-entry">
                                            <input type="text" placeholder="Enter your ToDo List" class="form-control" style="width: 100%">
                                        </div>
                                        <button class="btn btn-primary pull-right" type="submit">+</button>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="panel blue-box twt-info">
                        <div class="panel-body">
                            <h3>19 Februay 2014</h3>

                            <p>AdminEx is new model of admin
                            dashboard <a href="#">http://t.co/3laCVziTw4</a>
                            4 days ago by John Doe</p>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="panel-body">
                            <div class="media usr-info">
                                <a href="#" class="pull-left">
                                    <img class="thumb" src="/images/photos/user2.png" alt=""/>
                                </a>
                                <div class="media-body">
                                    <h4 class="media-heading">Mila Watson</h4>
                                    <span>Senior UI Designer</span>
                                    <p>I use to design websites and applications for the web.</p>
                                </div>
                            </div>
                        </div>
                        <div class="panel-footer custom-trq-footer">
                            <ul class="user-states">
                                <li>
                                    <i class="fa fa-heart"></i> 127
                                </li>
                                <li>
                                    <i class="fa fa-eye"></i> 853
                                </li>
                                <li>
                                    <i class="fa fa-user"></i> 311
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <footer style = 'margin-top:500px'>
            商洛学院信息管理与信息系统毕业设计
        </footer>
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>
<!--用户修改密码-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">
                    用户密码修改
                </h4>
            </div>
            <div class="modal-body">
                <input type="password" class="form-control" placeholder="原密码" autofocus name="u_oldpwd"  id="u_oldpwd" onblur="checkpwd()"><br><br>
                <input type="password" class="form-control" placeholder="新密码" name="u_newpwd" id="u_newpwd"><br><br>
                <input type="password" class="form-control" placeholder="确认新密码" name="u_surenewpwd" id="u_surenewpwd"><br><br>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="submitpwd()">
                    提交更改
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<!--企业基础信息完善-->
<div class="modal fade" id="myModalInfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabeInfo">
                    基础信息完善
                </h4>
            </div>
            <div class="modal-body">
              <form action="" id="myFormInfo">
                  <div class="form-group">
                      <label class="col-sm-2 control-label" for="comp_name" style="margin-top: 8px">企业名称:</label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="企业名称" autofocus name="comp_name"  id="comp_name">
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="comp_code" style="margin-top: 8px">信用代码:</label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="统一社会信用代码/组织机构代码" autofocus name="comp_code"  id="comp_code">
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="comp_nature" style="margin-top: 8px">单位性质:</label>
                      <div class="col-sm-10">
<!--                          <input type="text" class="form-control" placeholder="单位性质" name="comp_nature" id="comp_nature">-->
                          <select class="form-control" placeholder="单位性质" name="comp_nature" id="comp_nature" >

                          </select>
                      </div>
                  </div><br>

                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="comp_kind" style="margin-top: 8px">单位行业:</label>
                      <div class="col-sm-10">
<!--                          <input type="text" class="form-control" placeholder="单位行业" name="comp_kind" id="comp_kind">-->
                          <select class="form-control" placeholder="单位行业" name="comp_kind" id="comp_kind" >

                          </select>
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="comp_province" style="margin-top: 8px">企业地址:</label>
                      <div class="col-sm-3">
                          <!--                          <input type="text" class="form-control" autofocus name="stu_province"  id="stu_province" value="">-->
                          <select class="form-control" autofocus name="comp_province"  id="comp_province" value=""  onchange="selectCity()">

                          </select>
                      </div>
                      <div class="col-sm-3">
                          <!--                          <input type="text" class="form-control" autofocus name="stu_city"  id="stu_city" value="">-->
                          <select class="form-control" autofocus name="comp_city"  id="comp_city" value=""  onchange="selectCounty()">

                          </select>
                      </div>
                      <div class="col-sm-4">
                          <!--                          <input type="text" class="form-control" autofocus name="stu_county"  id="stu_county" value="">-->
                          <select class="form-control" autofocus name="comp_county"  id="comp_county" value=""  >

                          </select>
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="comp_address" style="margin-top: 8px">详细地址:</label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="单位地址" name="comp_address" id="comp_address">
                      </div>
                  </div><br>

                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="comp_contact" style="margin-top: 8px">联系人:</label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="联系人" name="comp_contact" id="comp_contact">
                      </div>
                  </div><br>

                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="comp_contacttel" style="margin-top: 8px">联系电话:</label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="联系电话" name="comp_contacttel" id="comp_contacttel">
                      </div>
                  </div><br>

                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="comp_email" style="margin-top: 8px">电子邮箱:</label>
                      <div class="col-sm-10">
                          <input type="text"  class="form-control" placeholder="电子邮箱" name="comp_email" id="comp_email">
                      </div>
                  </div><br><br><br><br><br><br><br>
              </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="submitCompBaseInfo()">
                    保存信息
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<!--企业招聘信息完善-->
<div class="modal fade" id="myModalRecruitInfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabeRecruitInfo">
                    招聘信息完善
                </h4>
            </div>
            <div class="modal-body">
                <form action="" id="myFormRecruitInfo">
                    <div class="form-group" style="text-align: center">
                        <span >公司简介</span>
                        <textarea class="form-control" rows="7" id="comp_profile"name="comp_profile"></textarea>
                    </div>
                    <div class="form-group" style="text-align: center">
                        <span >招聘岗位</span>
                        <textarea class="form-control" rows="7" id="comp_cecruit"name="comp_cecruit"></textarea>
                    </div>
                    <div class="form-group" style="text-align: center">
                        <span ><h5>薪资福利</h5></span>
                        <textarea class="form-control" rows="7" id="comp_salary" name="comp_salary"></textarea>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="submitCompRecruitInfo()">
                    保存信息
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<!--校招信息发布-->
<div class="modal fade" id="myModalInfoRelease" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabeInfoRelease">
                    校招信息发布
                </h4>
            </div>
            <div class="modal-body">
                <form action="" id="myFormInfoRelease">
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="recruit_time" style="margin-top: 8px">校招时间:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="校招时间" autofocus name="recruit_time"  id="recruit_time" AUTOCOMPLETE="off">
                        </div>
                    </div><br>
                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="recruit_name" style="margin-top: 8px">企业名称:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="企业名称" autofocus name="recruit_name"  id="recruit_name">
                        </div>
                    </div><br>

                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="recruit_address" style="margin-top: 8px">校招地点:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="校招地点" name="recruit_address" id="recruit_address">
                        </div>
                    </div><br>

                    <div class="form-group"style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="recruit_people" style="margin-top: 8px">联系人:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="联系人" name="recruit_people" id="recruit_people">
                        </div>
                    </div><br>

                    <div class="form-group"style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="recruit_peopletel" style="margin-top: 8px">联系电话:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="联系电话" name="recruit_peopletel" id="recruit_peopletel">
                        </div>
                    </div><br>

                    <div class="form-group" style="text-align: center">
                        <span >招聘岗位</span>
                        <textarea class="form-control" rows="6" id="recruit_job"name="recruit_job"></textarea>
                    </div>
                    <div class="form-group" style="text-align: center">
                        <span ><h5>技能要求</h5></span>
                        <textarea class="form-control" rows="6" id="recruit_material" name="recruit_material"></textarea>
                    </div>
                    <div class="form-group" style="text-align: center">
                        <span ><h5>薪资福利</h5></span>
                        <textarea class="form-control" rows="5" id="recruit_salary" name="recruit_salary"></textarea>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="submitReleaseInfo()">
                    保存信息
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


<script src="/js/jquery-1.10.2.min.js"></script>
<script src="/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="/js/jquery-migrate-1.2.1.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/modernizr.min.js"></script>
<script src="/js/jquery.nicescroll.js"></script>

<!--easy pie chart-->
<script src="/js/easypiechart/jquery.easypiechart.js"></script>
<script src="/js/easypiechart/easypiechart-init.js"></script>

<!--Sparkline Chart-->
<script src="/js/sparkline/jquery.sparkline.js"></script>
<script src="/js/sparkline/sparkline-init.js"></script>

<!--icheck -->
<script src="/js/iCheck/jquery.icheck.js"></script>
<script src="/js/icheck-init.js"></script>

<!-- jQuery Flot Chart-->
<script src="/js/flot-chart/jquery.flot.js"></script>
<script src="/js/flot-chart/jquery.flot.tooltip.js"></script>
<script src="/js/flot-chart/jquery.flot.resize.js"></script>


<!--Morris Chart-->
<script src="/js/morris-chart/morris.js"></script>
<script src="/js/morris-chart/raphael-min.js"></script>

<!--Calendar-->
<script src="/js/calendar/clndr.js"></script>
<script src="/js/calendar/evnt.calendar.init.js"></script>
<script src="/js/calendar/moment-2.2.1.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<!--common scripts for all pages-->
<script src="/js/scripts.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=3.0&ak=wMTXdYCQbDQsMGo4NcR5jO645sPOla7g"></script>
<!--Dashboard Charts-->
<script src="/js/dashboard-chart-init.js"></script>
<link rel="stylesheet" type="text/css" href="/css/bootstrap-datetimepicker.css" />
<script src="/js/bootstrap-datetimepicker.js" type="text/javascript"></script>

<script type="text/javascript">


    $('#recruit_time').datetimepicker({
        minView: "month",
        language: 'zh-CN',
        format: 'yyyy-mm-dd hh:ii',
        todayBtn: 1,
        autoclose: true,
        startDate:'2019-09-01 00:00',
    });



    var provenceArr = ["北京市","天津市","上海市","重庆市","河北省","山西省","内蒙古","辽宁省","吉林省","黑龙江省","江苏省","浙江省","安徽省","福建省","江西省","山东省","河南省","湖北省","湖南省","广东省","广西","海南省","四川省","贵州省","云南省","西藏","陕西省","甘肃省","青海省","宁夏","新疆","香港","澳门","台湾省"];
    var cityArr = new Array();
    cityArr["陕西省"] = ["西安市","延安市","铜川市","渭南市","咸阳市","宝鸡市","汉中市","榆林市","安康市","商洛市"];
    cityArr["山西省"] = ["太原市","临汾市","大同市","吕梁市","阳泉市","运城市","晋中市","长治市","晋城市","朔州市","忻州市"];
    cityArr["北京市"] = ["东城区","西城区","海淀区","朝阳区","丰台区","石景山区","门头沟区","通州区","顺义区","房山区","大兴区","昌平区","怀柔区","平谷区","密云区","延庆区"];
    cityArr["上海市"] = ["黄浦区","浦东新区","徐汇区","长宁区","静安区","普陀区","虹口区","杨浦区","闵行区","宝山区","嘉定区","金山区","松江区","青浦区","奉贤区","崇明县"];
    cityArr["天津市"] = ["和平区","河西区","南开区","河东区","河北区","红桥区","滨海新区","东丽区","西青区","津南区","北辰区","武清区","宝坻区","静海区​","蓟州区"];
    cityArr["广东省"] = ["广州市","深圳市","佛山市","东莞市","中山市","珠海市","江门市","肇庆市","惠州市","汕头市","潮州市","揭阳市","阳江市","韶关市","梅州市","清远市"];
    var countyArr = new Array();
    countyArr["西安市"] = ["新城区","碑林区","莲湖区","灞桥区","未央区","雁塔区","阎良区","临潼区","长安区","蓝田县","周至县","户县","高陵区"];
    countyArr["咸阳市"] = ["渭城区","秦都区","礼泉县","乾县","兴平","三原县","泾阳县","永寿县","彬县","长武县","旬邑县","淳化县","武功县"];
    countyArr["商洛市"] = ["商州区","洛南县","丹凤县","商南县","山阳县","镇安县","柞水县"];
    countyArr["渭南市"] = ["临渭区","华州区","潼关县","大荔县","蒲城县","澄城县","白水县","合阳县","富平县","韩城","华阴"];
    countyArr["延安市"] = ["宝塔区","延长县","延川县","子长县","安塞县","志丹县","吴起县","甘泉县","富县","洛川县","宜川县","黄龙县","黄陵县"];
    countyArr["铜川市"] = ["王益区","印台区","耀州区","宜君县"];
    countyArr["宝鸡市"] = ["渭滨区","金台区","陈仓区","宝鸡蟠龙新区","宝鸡陆港新区","岐山县","扶风县","眉县","凤翔县","陇县","千阳县","麟游县","凤县","太白县"];
    countyArr["汉中市"] = ["汉台区","南郑县","城固县","洋县","西乡县","勉县","宁强县","略阳县","镇巴县","留坝县" ,"佛坪县"];
    countyArr["榆林市"] = ["榆阳区","横山区","神木县","绥德县","靖边县","定边县","府谷县","子洲县","米脂县","吴堡县","清涧县","佳县"];
    countyArr["安康市"] = ["汉滨区","汉阴县","石泉县","宁陕县","紫阳县","岚皋县","平利县","镇坪县","旬阳县","白河县"];

    var natureArr =["国有企业","国有控股企业","外资企业","合资企业","私营企业","事业单位","国家行政机关"];
    var industryArr = ["农业","林业","畜牧业","渔业","计算机服务和软件业","采矿业","制造业"," 电力","燃气及水的生产和供应业","建筑业","交通运输","仓储和邮政业" ,"批发和零售业"," 住宿和餐饮业","金融业"," 房地产业"," 租赁和商务服务业" ,"科学研究","技术服务和地质勘查业"," 水利","环境和公共设施管理业" ,"居民服务和其他服务业", "教育","卫生医疗","社会保障和社会福利业" ,"文化、体育和娱乐业"]

    window.onload = function () {
        allProvence();
        allNature();
        allIndustry();
    };


    function allIndustry(){
        var comp_kind = document.getElementById("comp_kind");
        for(var i = 0; i < industryArr.length; i++)
        {
            var o_l = new Option(industryArr[i],industryArr[i]);
            comp_kind.options.add(o_l);
        }
    }

    function allNature(){
        var comp_nature = document.getElementById("comp_nature");
        for(var i = 0; i < natureArr.length; i++)
        {
            var o_l = new Option(natureArr[i],natureArr[i]);
            comp_nature.options.add(o_l);
        }
    }


    function allProvence(){
        var comp_province = document.getElementById("comp_province");
        for(var i = 0; i < provenceArr.length; i++)
        {
            var o_l = new Option(provenceArr[i],provenceArr[i]);
            comp_province.options.add(o_l);
        }
    }
    function selectCity()
    {
        var comp_province = document.getElementById("comp_province").value;
        var comp_city = document.getElementById("comp_city");
        comp_city.options.length = 0;
        if(comp_province == "")
        {
            var option = new Option("西安市","西安市");
            comp_city.options.add(option);
        }else{
            for(var i = 0; i < cityArr[comp_province].length; i++)
            {
                var o_l = new Option(cityArr[comp_province][i],cityArr[comp_province][i]);
                comp_city.options.add(o_l);
            }
        }
    }

    function selectCounty()
    {
        var comp_city = document.getElementById("comp_city").value;
        var comp_county = document.getElementById("comp_county");
        comp_county.options.length = 0;
        if(comp_city == "")
        {
            var option = new Option("雁塔区","雁塔区");
            comp_county.options.add(option);
        }else{
            for(var i = 0; i < countyArr[comp_city].length; i++)
            {
                var o_l = new Option(countyArr[comp_city][i],countyArr[comp_city][i]);
                comp_county.options.add(o_l);
            }
        }
    }


    var username= window.sessionStorage.getItem("comp_u_name");
 document.getElementById("currentuser").innerHTML = username;
    function clicklogo(){
        window.location.href = "stushow";
    }

    function general(){
        window.location.href = "general";
    }


    function compattentstu(){
        window.location.href = "compattentstu";
    }


    function mycompattentstu(){
        window.location.href = "mycompattentstu";
    }

    function infostu(){
        window.location.href = "infostu";
    }


 function submitReleaseInfo(){
     var data = $( '#myFormInfoRelease').serialize();//表单序列化 form表单的id属性值
     $.ajax({
         url : 'info/submitReleaseInfo',
         type : "POST",
         data:data,
         success : function(result) {
             if(result=='已保存'){
                 swal("信息发布成功!", "您发布的信息已经录入本系统!", "success");
             }else if(result=='未保存'){
                 swal("请勿重复发布!", "您发布的信息已经存在与本系统!", "error");
                 return false;
             }
         },
         error : function(data) {

         }
     });
 }


 function submitCompBaseInfo(){
     var comp_province = document.getElementById("comp_province").value;
     var comp_city = document.getElementById("comp_city").value;
     var comp_county = document.getElementById("comp_county").value;
     var data = $( '#myFormInfo').serialize();//表单序列化 form表单的id属性值
     data = data+"&comp_province ="+comp_province+"&comp_city="+comp_city+"&comp_county="+comp_county;
     $.ajax({
         url : 'user/submitCompBaseInfo',
         type : "POST",
         data:data,
         success : function(result) {
              if(result=='已保存'){
                  swal("保存成功!", "企业基础信息已经录入本系统!", "success");
              }else{

              }
         },
         error : function(data) {

         }
     });
 }




 function selectCompBaseInfo(){



     $.ajax({
         url : 'user/selectCompBaseInfo',
         type : "POST",
         success : function(result) {
          if(result!=null){
             if(result.comp_name!='0'){
                 document.getElementById("comp_name").value=result.comp_name;
             }
             if(result.comp_name=='undefined'||result.comp_name==undefined){
                 document.getElementById("comp_name").value='';
             }

             if(result.comp_code!='0'){
                 document.getElementById("comp_code").value=result.comp_code;
             }
              if(result.comp_code=='undefined'||result.comp_code==undefined){
                  document.getElementById("comp_code").value='';
              }

             if(result.comp_nature!='0'){
                 document.getElementById("comp_nature").value=result.comp_nature;
             }
              if(result.comp_nature=='undefined'||result.comp_nature==undefined){
                  document.getElementById("comp_nature").value='';
              }

             if(result.comp_kind!='0'){
                 document.getElementById("comp_kind").value=result.comp_kind;
             }
              if(result.comp_kind=='undefined'||result.comp_kind==undefined){
                  document.getElementById("comp_kind").value='';
              }

             if(result.comp_address!='0'){
                 document.getElementById("comp_address").value=result.comp_address;
             }
              if(result.comp_address=='undefined'||result.comp_address==undefined){
                  document.getElementById("comp_address").value='';
              }

             if(result.comp_contact!='0'){
                 document.getElementById("comp_contact").value=result.comp_contact;
             }
             if(result.comp_contact=='undefined'||result.comp_contact==undefined){
                  document.getElementById("comp_contact").value='';
              }

             if(result.comp_contacttel!='0'){
                 document.getElementById("comp_contacttel").value=result.comp_contacttel;
             }
              if(result.comp_contacttel=='undefined'||result.comp_contacttel==undefined){
                  document.getElementById("comp_contacttel").value='';
              }

              if(result.comp_email!='0'){
                  document.getElementById("comp_email").value=result.comp_email;
              }
              if(result.comp_email=='undefined'||result.comp_email==undefined){
                  document.getElementById("comp_email").value='';
              }

              if(result.comp_province!='0'){
                  document.getElementById("comp_province").value=result.comp_province;
              }
              if(result.comp_province=='undefined'||result.comp_province==undefined){
                  document.getElementById("comp_province").value='';
              }

              if(result.comp_city!='0'){
                  // document.getElementById("stu_profession").value=result.stu_profession;
                  var option = document.createElement("option");
                  $(option).val(result.comp_city);
                  $(option).text(result.comp_city);
                  $('#comp_city').append(option);
              }
              if(result.comp_city=='undefined'||result.comp_city==undefined){
                  document.getElementById("comp_city").value='';
              }

              if(result.comp_county!='0'){
                  // document.getElementById("stu_profession").value=result.stu_profession;
                  var option = document.createElement("option");
                  $(option).val(result.comp_county);
                  $(option).text(result.comp_county);
                  $('#comp_county').append(option);
              }
              if(result.comp_county=='undefined'||result.comp_county==undefined){
                  document.getElementById("comp_county").value='';
              }

          }
         },
         error : function(data) {

         }
     });
 }
 function submitCompRecruitInfo(){
     var data = $( '#myFormRecruitInfo').serialize();//表单序列化 form表单的id属性值
     $.ajax({
         url : 'user/submitCompRecruitInfo',
         type : "POST",
         data:data,
         success : function(result) {
             if(result=='已保存'){
                 swal("保存成功!", "企业招聘信息已经录入本系统!", "success");
             }else{

             }
         },
         error : function(data) {

         }
     });
 }

 function selectCompRecruitInfo(){
     $.ajax({
         url : 'user/selectCompRecruitInfo',
         type : "POST",
         success : function(result) {
             if(result!=null){
                 if(result.comp_profile!='0'){
                     document.getElementById("comp_profile").value=result.comp_profile;
                 }
                 if(result.comp_profile=='undefined'||result.comp_profile==undefined){
                     document.getElementById("comp_profile").value='';
                 }

                 if(result.comp_cecruit!='0'){
                     document.getElementById("comp_cecruit").value=result.comp_cecruit;
                 }
                 if(result.comp_cecruit=='undefined'||result.comp_cecruit==undefined){
                     document.getElementById("comp_cecruit").value='';
                 }

                 if(result.comp_salary!='0'){
                     document.getElementById("comp_salary").value=result.comp_salary;
                 }
                 if(result.comp_salary=='undefined'||result.comp_salary==undefined){
                     document.getElementById("comp_salary").value='';
                 }
             }
         },
         error : function(data) {

         }
     });
 }



 function deleteAcount(){
     swal({
         title: "确认注销账号吗?",
         text: "账号一旦注销,将无法找回,注册不易,且行且珍惜",
         icon : "warning",
         dangerMode : true,
         buttons : [ "考虑一下", "含泪注销"],
     }).then(function(ok){
         if (ok) {
             $.ajax({
                 url : 'user/compdeleteAcount',
                 method : 'delete',
                 dataType : 'json',
                 success : function(result) {
                     if(result == '已注销'){
                         swal("注销成功!", "期待您下次使用本系统!", "success");
                         window.location.href = "login";
                     }else{
                         swal("注销失败!", "你的账户目前不能被注销!", "error");
                     }
                 },
                 error : function(data) {
                     swal("注销成功!", "期待您下次使用本系统!", "success");
                     window.location.href = "login";
                 }
             });
         }else{
             swal("很开心您放弃了本次操作!");
         }
     });


 }

    function loginout(){

        swal({
            title: "确认退出当前账号吗?",
            icon : "warning",
            dangerMode : true,
            buttons : [ "取消", "确认"],
        }).then(function(ok){
            if (ok) {
                $.ajax({
                    url : "/user/comploginout",//url 统一资源定位符
                    type : "POST",
                    success : function(result) {
                        if(result == '已退出'){
                            window.location.href = "complogin";
                            swal("退出成功!", "再次登录请前往登陆页面", "success");
                        }else{
                            swal("退出失败!", "用户名或密码出现错误", "error");
                        }
                    },
                    error : function(data) {
                        swal("退出成功!", "再次登录请前往登陆页面", "success");
                    }
                });
            }else{
                swal("很开心您放弃了本次操作!");
            }
        });




    }



 function checkpwd(){
     var u_oldpwd = document.getElementById("u_oldpwd").value;
     if(u_oldpwd == null || u_oldpwd==''){
         swal("原密码不能为空!", "请输入原密码进行密码修改", "error");
         return false;
     }
     $.ajax({
         url : "/user/compcheckpwd?u_oldpwd="+u_oldpwd,//url 统一资源定位符
         type : "POST",
         success : function(result) {
             if(result == '密码存在'){

             }else{
                 swal("原密码错误", "如忘记密码可在登录页进行忘记密码操作", "error");
             }
         },
         error : function(data) {

         }
     });
 }

 function submitpwd(){
     var u_newpwd = document.getElementById("u_newpwd").value;
     var u_surenewpwd = document.getElementById("u_surenewpwd").value;

     if(u_newpwd == null || u_newpwd==''){
         swal("新密码不能为空!", "请输入新密码进行密码修改", "error");
         return false;
     }

     if(u_newpwd.length<7){
         swal("新密码须超过6位!", "请重新输入", "error");
         document.getElementById("u_newpwd").value="";
         document.getElementById("u_surenewpwd").value="";
         return false;
     }
     if(u_newpwd != u_surenewpwd ){
         swal("两次密码不一致", "请重新输入密码", "error");
         document.getElementById("u_newpwd").value="";
         document.getElementById("u_surenewpwd").value="";
         return false;
     }
     $.ajax({
         url : "/user/compupdatepwd?u_newpwd="+u_newpwd,//url 统一资源定位符
         type : "POST",
         success : function(result) {
             if(result == '已修改'){
                 swal("修改成功!", "下次登陆请使用新密码进行登录", "success");
             }else{
                 swal("原密码错误", "如忘记密码可在登录页进行忘记密码操作", "error");
             }
         },
         error : function(data) {

         }
     });
 }



</script>




</body>
</html>
